// --------------------------------------------------------------------------------------------------------------------
// <copyright file="PhysicalStoreFactory.cs" company="">
//   Copyright (C) 2009 Sukru TIKVES
// </copyright>
// <summary>
//   Provides access to the persistence storage mechanism.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

using System.Collections.Generic;

namespace Bbm.Persistence
{
	/// <summary>
	/// Allows dynamic generation of physical stores
	/// </summary>
	public interface IPhysicalStoreFactory
	{
		/// <summary>
		///  Returns a physical store for the given storage name. Name uniqueness
		///  is provided by the caller.
		///  </summary>
		/// <param name="name">
		///   The name of the store
		/// </param>
		/// <returns>
		///  A PhysicalStoreBase object the allows persistent storage
		///  </returns>
		IDictionary<string, string> GetStoreForName(CacheStoreName name);
	}
}